import 'package:get/get.dart';

class ActivityItem {
  final String id;
  final String title;
  final String date;
  final String location;
  final String description;
  final int participants;
  final String imageUrl;  // 可以为空，表示使用默认图标
  final String fullAddress; // 完整地址
  final String category; // 活动类别
  final int maxParticipants; // 最大参与人数
  final String cost; // 活动费用
  final String gender; // 性别要求
  
  ActivityItem({
    required this.id,
    required this.title,
    required this.date,
    required this.location,
    required this.description,
    required this.participants,
    this.imageUrl = '',
    this.fullAddress = '',
    this.category = '',
    this.maxParticipants = 0,
    this.cost = '',
    this.gender = '',
  });
}

class ActivteState {
  // 活动列表
  final RxList<ActivityItem> activities = <ActivityItem>[].obs;
  
  // 是否正在加载
  final RxBool isLoading = false.obs;
  
  // 当前选中的活动
  final Rx<ActivityItem?> selectedActivity = Rx<ActivityItem?>(null);
}
